﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TpBaseObjects.Objects {
    public class Organisation {

        #region Members
        #endregion

        #region Constructor

        public Organisation() {
        }

        #endregion

        #region Properties

        private int orgKey;
        public int OrgKey {
            get { return this.orgKey; }
            set { this.orgKey = value; }
        }

        private string orgTS;
        public string OrgTS {
            get { return this.orgTS; }
            set { this.orgTS = value; }
        }

        private DateTime änderung;
        public DateTime Änderung {
            get { return this.änderung; }
            set { this.änderung = value; }
        }

        private string prefix;
        public string Prefix {
            get { return this.prefix; }
            set { this.prefix = value; }
        }

        private string name;
        public string OrgName {
            get { return this.name; }
            set { this.name = value; }
        }

        private string zusätzeFW;
        public string ZusätzeFW {
            get { return this.zusätzeFW; }
            set { this.zusätzeFW = value; }
        }

        private string rechtsForm;
        public string RechtsForm {
            get { return this.rechtsForm; }
            set { this.rechtsForm = value; }
        }

        private string suchbegriff;
        public string Suchbegriff {
            get { return this.suchbegriff; }
            set { this.suchbegriff = value; }
        }

        private string abteilung;
        public string Abteilung {
            get { return this.abteilung; }
            set { this.abteilung = value; }
        }

        private string adresse;
        public string Adresse {
            get { return this.adresse; }
            set { this.adresse = value; }
        }

        private int ePLZ;
        public int EPLZ {
            get { return this.ePLZ; }
            set { this.ePLZ = value; }
        }

        private string straße;
        public string Straße {
            get { return this.straße; }
            set { this.straße = value; }
        }

        private string telNr1;
        public string TelNr1 {
            get { return this.telNr1; }
            set { this.telNr1 = value; }
        }

        private string telNr2;
        public string TelNr2 {
            get { return this.telNr2; }
            set { this.telNr2 = value; }
        }

        private string faxNr;
        public string FaxNr {
            get { return this.faxNr; }
            set { this.faxNr = value; }
        }

        private string eMail;
        public string EMail {
            get { return this.eMail; }
            set { this.eMail = value; }
        }

        private string kurzwahlspeicher;
        public string Kurzwahlspeicher {
            get { return this.kurzwahlspeicher; }
            set { this.kurzwahlspeicher = value; }
        }

        private bool kG;
        public bool KG {
            get { return this.kG; }
            set { this.kG = value; }
        }

        private bool mB;
        public bool MB {
            get { return this.mB; }
            set { this.mB = value; }
        }

        private int tochterVon;
        public int TochterVon {
            get { return this.tochterVon; }
            set { this.tochterVon = value; }
        }

        private int kreditlimit;
        public int Kreditlimit {
            get { return this.kreditlimit; }
            set { this.kreditlimit = value; }
        }

        private string notiz;
        public string Notiz {
            get { return this.notiz; }
            set { this.notiz = value; }
        }

        private bool export;
        public bool Export {
            get { return this.export; }
            set { this.export = value; }
        }

        private string plz;
        public string Plz {
            get { return this.plz; }
            set { this.plz = value; }
        }

        private string ort;
        public string Ort {
            get { return this.ort; }
            set { this.ort = value; }
        }

        private List<Person> myList = new List<Person>();
        public List<Person> MyPersons {
            get { return this.myList; }
        }

        #endregion

        #region Methods

        public void AddPerson(Person person) {
            this.myList.Add(person);
        }

        #endregion

    }
}
